function checkForm()
{
    var login = document.getElementById("_login");
    var password = document.getElementById("_password");

    if(login.value.length == 0 || password.value.length == 0)
    {
        var err = document.getElementById('error');
        err.innerHTML = '<span style="font-color: red;">Not all fields are filled</span>';
        return false;
    }

    return true;
}

window.onload=function() {document.getElementById("login_").focus()};

